package top.hyperplasma.kinare.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.hyperplasma.kinare.service.impl.ZhipuServiceImpl;

@RestController
@RequestMapping("/api/zhipu")
public class ZhipuController {

    @Autowired
    ZhipuServiceImpl zhipuService;

    // 连接智普的glm-4-flash模型，API Key先用abcde代替
    @RequestMapping("/glm4")
    public String glm4() {
        return zhipuService.glm4("hellooooooooo?");
    }
}
